﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.DomainModel.Sys
{
    /// <summary>
    /// 数据规则模型
    /// </summary>
    public class SysDataRule
    {
        /// <summary>
        /// 数据规则ID
        /// </summary>
        public string? RuleId { get; set; }

        /// <summary>
        /// 规则名称
        /// </summary>
        public string? RuleName { get; set; }

        /// <summary>
        /// 菜单id
        /// </summary>
        public string? MenuId { get; set; }

        /// <summary>
        /// 公司key
        /// </summary>
        public string? CorporationKey { get; set; }

        /// <summary>
        /// 系统key
        /// </summary>
        public string? SystemKey { get; set; }

        /// <summary>
        /// 规则类型：1：数据行规则 2：数据按钮规则
        /// </summary>
        public int RuleType { get; set; }

        /// <summary>
        /// 规则json
        /// </summary>
        public string? RuleJson { get; set; }

        /// <summary>
        /// 英文匹配规则
        /// </summary>
        public string? AnalysisRule { get; set; }

        /// <summary>
        /// 中文匹配规则
        /// </summary>
        public string? AnalysisRule_CN { get; set; }

        /// <summary>
        /// 是否打开
        /// </summary>
        public bool IsOpen { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人员
        /// </summary>
        public string? CreateUser { get; set; }
    }
}
